package com.seagox.chat.chat.mapper;

import com.seagox.chat.chat.entity.ChatMessage;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 聊天消息 Mapper 接口
 */
public interface ChatMessageMapper extends BaseMapper<ChatMessage> {
	
	public List<ChatMessage> queryByPage(@Param("sessionId")String sessionId, @Param("userId")String userId, @Param("startTime")String startTime, @Param("typeList") List<String> typeList, @Param("content")String content);
	
	public List<ChatMessage> queryPictureAndVideo(@Param("sessionId")String sessionId, @Param("userId")String userId, @Param("startTime")String startTime, @Param("endTime")String endTime);
	
}
